package org.easy.feign.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Packge org.easy.feign.api
 * @Autor linNaibin
 * @Description
 * @Version 1.0
 * @Date 2021/9/26 11:09
 */
@FeignClient(name = "注册中心服务提供者的名字")
public interface RemoteService {

    @GetMapping("demo/{id}")
    String remoteDemo(@PathVariable(value = "id") Integer id);

}
